package com.taotao.mapper;


import com.taotao.entity.UserEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    public List<UserEntity> getUser1();
   @Select("select * from mayikt_users")
    public List<UserEntity> getUser2();
    @Insert("INSERT INTO `mayikt_users` (`id`, `name`, `age`) VALUES (null, 'wangmazi', NULL);")
    int addUser();
    public UserEntity getUser(int id);
}
